import request from '@/utils/request'

// 查询地图点位
export const getMapPointApi = () =>
  request.get('/pio-microservice-biz/pio/ect/monitor/mapPoint')

// 查询某企业的当前功率等信息
export const getCompanyGLApi = (companyNo) =>
  request.get('/pio-microservice-biz/pio/ect/monitor/company/powerInfo', {
    params: {
      companyNo
    }
  })

// 查询某企业的概况
export const getCompanyMsgApi = (companyNo) =>
  request.get('/pio-microservice-biz/pio/ect/monitor/company/overview', {
    params: {
      companyNo
    }
  })

// 查询某企业的详细信息
export const getCompanyInfoApi = (companyNo) =>
  request.get('/pio-microservice-biz/pio/ect/monitor/company/detailedInfo', {
    params: {
      companyNo
    }
  })

// 获取当前用户的摄像头列表
export const getCameraListApi = (params) =>
  request.get('/pio-microservice-biz/pio/monitor/camera/list', { params })

// 查询左侧树第三层（企业层）
export const getCompanyTreeApi = (params) =>
  request.get('/pio-microservice-biz/pio/ect/line/third/tree', { params })